import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { MongooseModule } from '@nestjs/mongoose'
import { JwtModule } from './jwt.module'
import { FinanceModule } from './finance/finance.module'
import { WorkbenthModule } from './workbenth/workbenth.module'
import { OrderModule } from './order/order.module'
import { SystemModule } from './system/system.module'
import { MerchantModule } from './merchant/merchant.module'
import { ProduceModule } from './Produce/produce.model'
import { SocketModule } from './socket/socket.module'
import { AnalysisModule } from './analysis/analysis.module'
import { YunModule } from './operation/yun.module'
@Module({
  imports: [
    JwtModule,
    MongooseModule.forRoot(process.env.DB_URL),
    FinanceModule,
    WorkbenthModule,
    OrderModule,
    SystemModule,
    MerchantModule,
    ProduceModule,
    SocketModule,
    AnalysisModule,
    YunModule
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
